package com.nassir.xml.xmlreader;

import java.io.InputStream;

public interface IXmlTransformer {
    /**
     * 将java实体对象转换为xml
     * @param obj
     * @return
     * @throws Exception
     */
	public String modelToXml(Object obj) throws Exception;
	/**
	 * 将xml文件流转换为java实体对象
	 * @param xml
	 * @param objClass
	 * @return
	 * @throws Exception
	 */
	public Object xmlToModel(InputStream xml, Class<?> objClass) throws Exception;
}
